import NotFound from './pages/NotFound';
import Page1 from './pages/Page1';
import Page2 from './pages/Page2';
import Page3 from './pages/Page3';
import Page4 from './pages/Page4';

const routes = [
    {
        path: '/page1',
        component: Page1
    },
    {
        path: '/page2',
        component: Page2
    },
    {
        path: '/page3/:age',
        component: Page3
    },
    {
        path: '/page4/:age/:name',
        component: Page4
    },
    {
        path: '*',
        component: NotFound
    },
];

export default routes;